/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       button_group.h

	$Header: /game/button_group.h $

	$NoKeywords: $

 ************************************************************************/

#ifndef BUTTON_GROUP_H_INCLUDED
#define BUTTON_GROUP_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "toggle_button.h"

// group of toggle buttons, only 1 of which can be pressed
class t_button_group
{
public:
	void add( t_toggle_button* button );
	void clear();
	void enable( int id, bool enable_button );
	void enable( bool enable_button );
	void select( int id );
	void set_visible( int id, bool visible );
	void set_visible( bool visible );
protected:
	void clicked( t_button* button, t_button_handler function );

	std::vector<t_toggle_button_ptr> m_buttons;
};

inline void t_button_group::clear()
{
	m_buttons.clear();
}

#endif // BUTTON_GROUP_H_INCLUDED
